//
//  FmoneyDetailView.m
//  项目三
//
//  Created by rimi on 15/10/13.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import "FmoneyDetailView.h"

@interface FmoneyDetailView () {
    
    UILabel *_manyLabel;
    UILabel *_dataLabel;
}

- (void)initializeUserInterface; /**< 初始化用户界面 */

@end

@implementation FmoneyDetailView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self initializeUserInterface];
    }
    return self;
}

- (void)initializeUserInterface {

    [super initializeUserInterface];
    
    for (int i = 0; i < 21; i ++) {
        _manyLabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0, 50 + i * 38, 278, 38))];
        _manyLabel.textAlignment = NSTextAlignmentCenter;
        _manyLabel.font = [UIFont systemFontOfSize:17];
        _manyLabel.layer.borderColor = [UIColor blackColor].CGColor;
        _manyLabel.layer.borderWidth = 1;
        [self.scrollView addSubview:_manyLabel];
        
        _dataLabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(278, 50 + i * 38, 278, 38))];
        _dataLabel.textAlignment = NSTextAlignmentCenter;
        _dataLabel.font = [UIFont systemFontOfSize:17];
        _dataLabel.layer.borderColor = [UIColor blackColor].CGColor;
        _dataLabel.layer.borderWidth = 1;
        [self.scrollView addSubview:_dataLabel];
    }
    UILabel *remidLabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0, 50 + 21 * 38, 557, 38))];
    remidLabel.layer.borderColor = [UIColor blackColor].CGColor;
    remidLabel.layer.borderWidth = 1;
    remidLabel.text = F2324[0];
    remidLabel.font = [UIFont systemFontOfSize:17];
    [self.scrollView addSubview:remidLabel];
    
    UILabel *remindLabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0, 50 + 22 * 38, 557, 80))];
    remindLabel.text = F2324[1];
    remindLabel.layer.borderColor = [UIColor blackColor].CGColor;
    remindLabel.layer.borderWidth = 1;
    remindLabel.numberOfLines = 0;
    remindLabel.font = [UIFont systemFontOfSize:17];
    [self.scrollView addSubview:remindLabel];
    
    UILabel *delegatelabel = [[UILabel alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0, 50 + 22 * 38 + 80, 557, 2000))];
    delegatelabel.layer.borderColor = [UIColor blackColor].CGColor;
    delegatelabel.layer.borderWidth = 1;
    delegatelabel.numberOfLines = 0;
    delegatelabel.font = [UIFont systemFontOfSize:17];
    [self.scrollView addSubview:delegatelabel];
    
    self.scrollView.contentSize = CGSizeMake(557, CGRectGetMaxY(delegatelabel.frame) + 20);
}
@end
